package com.smartleanx.module.hrm.dal.mysql.examine.examineRangeType;

import java.util.*;

import com.smartleanx.framework.common.pojo.PageResult;
import com.smartleanx.framework.mybatis.core.query.LambdaQueryWrapperX;
import com.smartleanx.framework.mybatis.core.mapper.BaseMapperX;
import com.smartleanx.module.hrm.dal.dataobject.examine.examineRangeType.ExamineRangeTypeDO;
import org.apache.ibatis.annotations.Mapper;
import com.smartleanx.module.hrm.controller.admin.examine.examineRangeType.vo.*;

/**
 * 审核	范围 Mapper
 *
 * @author 
 */
@Mapper
public interface ExamineRangeTypeMapper extends BaseMapperX<ExamineRangeTypeDO> {

    default PageResult<ExamineRangeTypeDO> selectPage(ExamineRangeTypePageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<ExamineRangeTypeDO>()
                .eqIfPresent(ExamineRangeTypeDO::getEmployeeId, reqVO.getEmployeeId())
                .eqIfPresent(ExamineRangeTypeDO::getExamineId, reqVO.getExamineId())
                .orderByDesc(ExamineRangeTypeDO::getId));
    }

}